package com.wowangz.cms.dailyoperation.note.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

public class DemandNoteClazz {

	private String storeid;// 商户ID
	private String name;// 商户名称
	private String storeNumber;// 商户编号
	private String liquidationcycle;// 结算方式
	private String payamount;// 应缴金额
	private String amount;// 缴费金额
	private Date starttime;// 清算开始日期
	private Date endtime;// 清算结束日期
	private Long chargestatus;// 缴费状态:1、已缴 2、未缴

	public DemandNoteClazz(Map<String, Object> map){
		this.storeid = String.valueOf(map.get("storeid"));
		this.name = (String) map.get("name");
		this.storeNumber = (String) map.get("number");
		this.liquidationcycle = (String) map.get("liquidationcycle");
		BigDecimal bigDecimal = (BigDecimal)map.get("amount");
		this.amount = bigDecimal.toString();
		this.starttime = (Date) map.get("starttime");
		this.endtime = (Date) map.get("endtime");
		this.chargestatus = Long.parseLong(String.valueOf(map.get("chargestatus")));
		
	}
	public String getStoreid() {
		return storeid;
	}

	public void setStoreid(String storeid) {
		this.storeid = storeid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStoreNumber() {
		return storeNumber;
	}

	public void setStoreNumber(String storeNumber) {
		this.storeNumber = storeNumber;
	}

	public String getLiquidationcycle() {
		return liquidationcycle;
	}

	public void setLiquidationcycle(String liquidationcycle) {
		this.liquidationcycle = liquidationcycle;
	}

	public String getPayamount() {
		return payamount;
	}
	public void setPayamount(String payamount) {
		this.payamount = payamount;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Long getChargestatus() {
		return chargestatus;
	}

	public void setChargestatus(Long chargestatus) {
		this.chargestatus = chargestatus;
	}

}
